﻿using SuperX.Common.Helper;
using SuperX.Common.Log;
using System;
using System.Collections.Generic;
using System.Text;

namespace SuperX.Common.OS.LinuxCmds
{
    [Command("^Red Hat Enterprise Linux", "^CentOS Linux release")]
    public class CentOSCommand : LinuxCommand
    {
        public override string PackageSuffix => "rpm";

        protected override List<string> GenerateReInstallScript(string fullName)
        {
            var list = new List<string>
            {
                "rpm -e IoTServiceRun",
                "rpm -i \"" + fullName + "\""
            };
            return list;
        }

        public override void CheckOtherUpdate(InvokeMsg invokeMessage)
        {
            //暂时不知道在CentOS下会不会有影响
        }
    }
}